package com.wiscamp.ninechapters.problems.math;

import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 角的顶点
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LatexVertexDenote extends LatexGeometryDenote {
    /**
     * 顶点字符
     */
    private char value;


    public String getLatex() {
        return String.valueOf(value);
    }

    public LatexVertexDenote(char value) {
        this.value = value;
    }

    public LatexVertexDenote(String content) {
        var chars = content.toCharArray();
        if (chars.length == 1) {
            this.value = chars[0];
        }
    }
}
